﻿using Idea.Entity.Interface;
using System;
using System.ComponentModel.DataAnnotations;

namespace Idea.Entity
{
    public class Entity<TKey> : IEntity<TKey>
    {
        [Key]
        public TKey Id { get; set; }
        public DateTime Create { get; set; }
        public DateTime? Storno { get; set; }

        public Entity()
        {
            Create = DateTime.Now;
        }
    }
}
